From 29c842074613c76e83515d932a129480c128d629 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 28 Nov 2012 21:11:22 +0100 Subject: [PATCH] tests: Add CSS test for comment detection Tests recent fix. --- tests/css/parser/Makefile.am | 2 ++ tests/css/parser/comment-detection.css | 11 +++++++++++ tests/css/parser/comment-detection.ref.css | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 tests/css/parser/comment-detection.css create mode 100644 tests/css/parser/comment-detection.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index 404ad40f23..301c0f0a5d 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -184,6 +184,8 @@ EXTRA_DIST += \ colors-errors.ref.css \ colors-red.css \ colors-red.ref.css \ + comment-detection.css \ + comment-detection.ref.css \ cross-fade-basic.css \ css-21-malformed-declarations.css \ css-21-malformed-declarations.errors \ diff --git a/tests/css/parser/comment-detection.css b/tests/css/parser/comment-detection.css new file mode 100644 index 0000000000..1deece66e8 --- /dev/null +++ b/tests/css/parser/comment-detection.css @@ -0,0 +1,11 @@ +/*/ +a { color: blue; } +*/ + +/*\*/ +b { color: inherit; } +/* */ + +/**/ +c { color: inherit; } +/* */ diff --git a/tests/css/parser/comment-detection.ref.css b/tests/css/parser/comment-detection.ref.css new file mode 100644 index 0000000000..4fb58929ae --- /dev/null +++ b/tests/css/parser/comment-detection.ref.css @@ -0,0 +1,7 @@ +b { + color: inherit; +} + +c { + color: inherit; +} -- 2.30.2